package com.yunji.product.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yunji.common.annotation.Excel;
import com.yunji.common.base.BaseDelFlagDO;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("product_agent")
public class ProductAgentDO extends BaseDelFlagDO implements Serializable {
    private static final long serialVersionUID = -6111391142311718678L;

    @ApiModelProperty(value = "id")
    @TableId(type = IdType.AUTO)
    private Long id;

    @Excel(name = "用户类型 11-代理 13-网点", width = 15)
    @ApiModelProperty(value = "用户类型 11-代理 13-网点")
    private String userType;

    @ApiModelProperty(value = "所属ID")
    private Long belongId;

    @Excel(name = "代理商ID", width = 15)
    @ApiModelProperty(value = "代理商ID")
    private Long agentId;

    @Excel(name = "经理用户ID", width = 15)
    @ApiModelProperty(value = "经理用户ID")
    private Long siteId;

    @Excel(name = "商品ID", width = 15)
    @ApiModelProperty(value = "商品ID")
    private Long productId;

    @Excel(name = "销售价格", width = 15)
    @ApiModelProperty(value = "销售价格")
    private BigDecimal price;

    @Excel(name = "成本价格", width = 15)
    @ApiModelProperty(value = "成本价格")
    private BigDecimal costPrice;

    @Excel(name = "折扣价格", width = 15)
    @ApiModelProperty(value = "折扣价格")
    private BigDecimal discountPrice;

    @Excel(name = "代理定价", width = 15)
    @ApiModelProperty(value = "代理定价")
    private BigDecimal agentPrice;

    @Excel(name = "网点定价", width = 15)
    @ApiModelProperty(value = "网点定价")
    private BigDecimal managerPrice;

    @Excel(name = "单笔分润金额", width = 15)
    @ApiModelProperty(value = "单笔分润金额")
    private BigDecimal eachAmount;

    @Excel(name = "授权状态(0:正常;1:停用)", width = 15)
    @ApiModelProperty(value = "授权状态(0:正常;1:停用)")
    private Integer status;

    @Excel(name = "指定状态(0:全部:1:指定)", width = 15)
    @ApiModelProperty(value = "指定状态(0:全部:1:指定)")
    private Integer appointStatus;

    @Excel(name = "网点授权状态(0:授权;1:未授权)", width = 15)
    @ApiModelProperty(value = "网点授权状态(0:授权;1:未授权)")
    private Integer accreditStatus;

    @Excel(name = "修改状态(0:未修改;1:已修改)", width = 15)
    @ApiModelProperty(value = "修改状态(0:未修改;1:已修改)")
    private Integer changeStatus;

    @Excel(name = "商品名称", width = 15)
    @ApiModelProperty(value = "商品名称")
    private String productName;

    @Excel(name = "代理商名称", width = 15)
    @ApiModelProperty(value = "代理商名称")
    private String agentName;

}
